package com.sctvcloud.dongqu.ui.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

    public static boolean isDayOrNight() {
        SimpleDateFormat sdf = new SimpleDateFormat("HH");
        String hour = sdf.format(new Date());
        int k = Integer.parseInt(hour);
        if ((k >= 0 && k < 6) || (k >= 18 && k < 24)) {
            return true;
        } else {
            return false;
        }
    }
}
